package com.loong.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.loong.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    @Insert("insert into user_role(uid,rid) values(#{uid},#{rid})")
    void addRole(Long uid, Long rid);
}
